<?php
if (!defined("HDPHP_PATH"))exit('No direct script access allowed');
//更多配置请查看hdphp/Config/config.php
//定义配置项
$config = array(
	//自动加载应用Lib目录或应用组Common/Lib目录下的文件
	'AUTO_LOAD_FILE'                => array('functions.php'),
	//正则路由
	'route'=>array(
		'/^tid_(\d+)$/'=>'Index/List/index/tid/#1'
	),
	//伪静态扩展名
	'PATHINFO_HTML'                 => '.html',          
	// url重写模式
	'URL_REWRITE'					=>	true,
);
//引入web设置配置项
$webConfig = include COMMON_CONFIG_PATH . 'webConfig.php';
//图片上传路径
$webConfig['THUMB_PATH'] 		= $webConfig['THUMB_PATH'] . '/' . date('ymd');
$webConfig['UPLOAD_PATH'] 		= $webConfig['THUMB_PATH'];
//水印路径
$webConfig['WATER_FONT'] 		= ROOT_PATH . $webConfig['WATER_FONT'];
//水印图片
$webConfig['WATER_IMG'] 		= ROOT_PATH . $webConfig['WATER_IMG'];
//上传图片缩略图处理(是否开启)
$webConfig['UPLOAD_THUMB_ON'] 	= TRUE;

return array_merge($config,include COMMON_CONFIG_PATH . 'dbConfig.php',$webConfig);
?>
